from django.db import models
from utils.TimeModel import BaseTimeModel
# Create your models here.
from users.models import User

# 定义类
class OauthQQUser(BaseTimeModel):
    # 编写字段
    openid = models.CharField('openid', max_length=64)
    user = models.ForeignKey(User, on_delete=models.CASCADE, verbose_name='关联的美多用户')

    # create_time = models.DateTimeField('创建时间', auto_now_add=True)
    # update_time = models.DateTimeField('更新时间', auto_now=True)


    class Meta:
        db_table = 'tb_oauth'